package com.dlwx.parttimetalent.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by Administrator on 2017/12/14.
 */

public class OrderRecBean implements Parcelable {

    /**
     * code : 200
     * result : 我的意向便签管理
     * body : [{"labelclassid":15,"classname":"行业用人","child":[{"labelclassid":19,"classname":"销售1","child":[{"labelid":151,"start":1,"labelname":"测试自由工作31","intentid":19,"labeltype":1,"score":"5"},{"labelid":152,"start":1,"labelname":"月半女尼","intentid":19,"labeltype":1,"score":"5"}]},{"labelclassid":20,"classname":"客服","child":[]},{"labelclassid":21,"classname":"人事行政","child":[]},{"labelclassid":22,"classname":"餐饮","child":[]},{"labelclassid":23,"classname":"旅游","child":[]},{"labelclassid":24,"classname":"酒店","child":[]},{"labelclassid":25,"classname":"超市","child":[]},{"labelclassid":26,"classname":"测试","child":[]}]},{"labelclassid":16,"classname":"高颜值男神/女神","child":[]},{"labelclassid":17,"classname":"行业大佬","child":[]},{"labelclassid":18,"classname":"名人堂","child":[]},{"labelclassid":2,"classname":"自定义工作类别","allStatus":1,"labelid":25,"labelname":"永记生态园","start":1,"intentid":2,"labeltype":2}]
     */

    private int code;
    private String result;
    private List<BodyBean> body;

    protected OrderRecBean(Parcel in) {
        code = in.readInt();
        result = in.readString();
    }

    public static final Creator<OrderRecBean> CREATOR = new Creator<OrderRecBean>() {
        @Override
        public OrderRecBean createFromParcel(Parcel in) {
            return new OrderRecBean(in);
        }

        @Override
        public OrderRecBean[] newArray(int size) {
            return new OrderRecBean[size];
        }
    };

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public List<BodyBean> getBody() {
        return body;
    }

    public void setBody(List<BodyBean> body) {
        this.body = body;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(code);
        dest.writeString(result);
    }

    public static class BodyBean {
        /**
         * labelclassid : 15
         * classname : 行业用人
         * child : [{"labelclassid":19,"classname":"销售1","child":[{"labelid":151,"start":1,"labelname":"测试自由工作31","intentid":19,"labeltype":1,"score":"5"},{"labelid":152,"start":1,"labelname":"月半女尼","intentid":19,"labeltype":1,"score":"5"}]},{"labelclassid":20,"classname":"客服","child":[]},{"labelclassid":21,"classname":"人事行政","child":[]},{"labelclassid":22,"classname":"餐饮","child":[]},{"labelclassid":23,"classname":"旅游","child":[]},{"labelclassid":24,"classname":"酒店","child":[]},{"labelclassid":25,"classname":"超市","child":[]},{"labelclassid":26,"classname":"测试","child":[]}]
         * allStatus : 1
         * labelid : 25
         * labelname : 永记生态园
         * start : 1
         * intentid : 2
         * labeltype : 2
         */

        private int labelclassid;
        private String classname;
        private int allStatus;
        private int labelid;
        private String labelname;
        private int start;
        private int intentid;
        private int labeltype;
        private List<ChildBeanX> child;

        public int getLabelclassid() {
            return labelclassid;
        }

        public void setLabelclassid(int labelclassid) {
            this.labelclassid = labelclassid;
        }

        public String getClassname() {
            return classname;
        }

        public void setClassname(String classname) {
            this.classname = classname;
        }

        public int getAllStatus() {
            return allStatus;
        }

        public void setAllStatus(int allStatus) {
            this.allStatus = allStatus;
        }

        public int getLabelid() {
            return labelid;
        }

        public void setLabelid(int labelid) {
            this.labelid = labelid;
        }

        public String getLabelname() {
            return labelname;
        }

        public void setLabelname(String labelname) {
            this.labelname = labelname;
        }

        public int getStart() {
            return start;
        }

        public void setStart(int start) {
            this.start = start;
        }

        public int getIntentid() {
            return intentid;
        }

        public void setIntentid(int intentid) {
            this.intentid = intentid;
        }

        public int getLabeltype() {
            return labeltype;
        }

        public void setLabeltype(int labeltype) {
            this.labeltype = labeltype;
        }

        public List<ChildBeanX> getChild() {
            return child;
        }

        public void setChild(List<ChildBeanX> child) {
            this.child = child;
        }

        public static class ChildBeanX {
            /**
             * labelclassid : 19
             * classname : 销售1
             *
             *   "labelclassid": 2,
             "classname": "自定义工作类别",
             "allStatus": 1,
             "labelid": 25,
             "labelname": "永记生态园",
             "start": 1,
             "intentid": 2,
             "labeltype": 2
             * child : [{"labelid":151,"start":1,"labelname":"测试自由工作31","intentid":19,"labeltype":1,"score":"5"},{"labelid":152,"start":1,"labelname":"月半女尼","intentid":19,"labeltype":1,"score":"5"}]
             */

            private int labelclassid;
            private int allStatus;
            private int labelid;
            private int start;
            private int intentid;
            private int labeltype;
            private String classname;
            private String labelname;
            private String childname;
            private List<ChildBean> child;

            public String getChildname() {
                return childname;
            }

            public void setChildname(String childname) {
                this.childname = childname;
            }

            public int getAllStatus() {
                return allStatus;
            }

            public void setAllStatus(int allStatus) {
                this.allStatus = allStatus;
            }

            public int getLabelid() {
                return labelid;
            }

            public void setLabelid(int labelid) {
                this.labelid = labelid;
            }

            public int getStart() {
                return start;
            }

            public void setStart(int start) {
                this.start = start;
            }

            public int getIntentid() {
                return intentid;
            }

            public void setIntentid(int intentid) {
                this.intentid = intentid;
            }

            public int getLabeltype() {
                return labeltype;
            }

            public void setLabeltype(int labeltype) {
                this.labeltype = labeltype;
            }

            public String getLabelname() {
                return labelname;
            }

            public void setLabelname(String labelname) {
                this.labelname = labelname;
            }

            public int getLabelclassid() {
                return labelclassid;
            }

            public void setLabelclassid(int labelclassid) {
                this.labelclassid = labelclassid;
            }

            public String getClassname() {
                return classname;
            }

            public void setClassname(String classname) {
                this.classname = classname;
            }

            public List<ChildBean> getChild() {
                return child;
            }

            public void setChild(List<ChildBean> child) {
                this.child = child;
            }

            public static class ChildBean {
                /**
                 * labelid : 151
                 * start : 1
                 * labelname : 测试自由工作31
                 * intentid : 19
                 * labeltype : 1
                 * score : 5
                 */

                private int labelid;
                private int start;
                private String labelname;
                private String childname;
                private int intentid;
                private int labeltype;
                private String score;

                public String getChildname() {
                    return childname;
                }

                public void setChildname(String childname) {
                    this.childname = childname;
                }

                public int getLabelid() {
                    return labelid;
                }

                public void setLabelid(int labelid) {
                    this.labelid = labelid;
                }

                public int getStart() {
                    return start;
                }

                public void setStart(int start) {
                    this.start = start;
                }

                public String getLabelname() {
                    return labelname;
                }

                public void setLabelname(String labelname) {
                    this.labelname = labelname;
                }

                public int getIntentid() {
                    return intentid;
                }

                public void setIntentid(int intentid) {
                    this.intentid = intentid;
                }

                public int getLabeltype() {
                    return labeltype;
                }

                public void setLabeltype(int labeltype) {
                    this.labeltype = labeltype;
                }

                public String getScore() {
                    return score;
                }

                public void setScore(String score) {
                    this.score = score;
                }
            }
        }
    }
}
